package org.dromara.Nyt7FarmerInsuranceInfo.domain.bo;

import org.dromara.Nyt7FarmerInsuranceInfo.domain.Nyt7FarmerInsuranceInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 农户投保信息业务对象 nyt_7_farmer_insurance_info
 *
 * @author Lion Li
 * @date 2024-12-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Nyt7FarmerInsuranceInfo.class, reverseConvertGenerate = false)
public class Nyt7FarmerInsuranceInfoBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 农户名称
     */
    @NotBlank(message = "农户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String farmerName;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String farmerIdCard;

    /**
     * 地块总数
     */
    @NotNull(message = "地块总数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long plotCount;

    /**
     * 实测面积
     */
    @NotNull(message = "实测面积不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long measuredArea;

    /**
     * 投保面积
     */
    @NotNull(message = "投保面积不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long insuredArea;

    /**
     * 家庭成员姓名
     */
    @NotBlank(message = "家庭成员姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String familyMemberName;

    /**
     * 家庭成员身份证号
     */
    @NotBlank(message = "家庭成员身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String familyMemberIdCard;


}
